#pragma once
#include "HtmlEditCtrlEx.h"
#include "afxwin.h"


// CDlgEditHTML dialog

class CDlgEditHTML : public CDialog
{
	DECLARE_DYNAMIC(CDlgEditHTML)

public:
	CDlgEditHTML(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgEditHTML();

// Dialog Data
	enum { IDD = IDD_DIALOG_EDIT_HTML };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

public:
	CHtmlEditCtrlEx m_ctrlEditHTML;
	INT m_nType;
	CString m_szHTML;
	CComboBox m_ctrlSize;

public:
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	virtual void OnCancel();

	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnTimer(UINT_PTR nIDEvent);

	afx_msg void OnBnClickedButtonBold();
	afx_msg void OnBnClickedButtonItalic();
	afx_msg void OnBnClickedButtonColor();
	afx_msg void OnCbnSelchangeComboSize();
	afx_msg void OnBnClickedButtonBreak();
	afx_msg void OnBnClickedButtonApply();

	BOOL m_bUserListed;
	CMFCButton m_btnBold;
	CMFCButton m_btnItalic;
	CMFCButton m_btnColor;
	CMFCButton m_btnUndo;
	CMFCButton m_btnBreak;
};
